package oopchapter3_sumRental;

public class Bus extends Vechile{
	private int seatCount;
	
	public Bus(String brand, int seatCount) {
		super(brand);
		this.seatCount = seatCount;
	}
	
	public int getSeatCount() {
		return seatCount;
	}
	
	public int calRent(int days) {
		if (seatCount <= 16) {
			return days * 800;
		} else {
			return days * 1500;
		}
	}

}
